curl --request DELETE \
--url https://api.example.com/api/detalles/{detalleId}{
"204": {},
"401": {},
"403": {},
"404": {}
}Remove a specific line item from an order
curl --request DELETE \
--url https://api.example.com/api/detalles/{detalleId}{
"204": {},
"401": {},
"403": {},
"404": {}
}curl -X DELETE "http://localhost:8080/api/detalles/45" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
const response = await fetch('http://localhost:8080/api/detalles/45', {
method: 'DELETE',
headers: {
'Authorization': `Bearer ${token}`
}
});
if (response.ok) {
console.log('Item removed from order');
}
import requests
headers = {
'Authorization': f'Bearer {token}'
}
response = requests.delete(
'http://localhost:8080/api/detalles/45',
headers=headers
)
if response.status_code == 204:
print('Item removed successfully')